package com.stock.demo.adapter;

import android.content.Context;
import android.view.View;

import com.stock.demo.R;
import com.stock.demo.adapter.viewholder.StockViewHolder;
import com.stock.demo.model.HomeFollowBuyBean;

import java.util.ArrayList;

/**
 * Created by XuZhaoyu on 2017/8/1.
 */

public class HomeFollowBuyAdapter extends StockBaseAdapter<HomeFollowBuyBean> {

    public HomeFollowBuyAdapter(Context context, ArrayList<HomeFollowBuyBean> data) {
        super(context, data);
    }

    @Override
    public int setLayoutResId() {
        return R.layout.view_home_follow_buy_item;
    }

    @Override
    public void onBindViewHolder(StockViewHolder holder, int position) {
        if (position == getItemCount() - 1) {
            holder.itemView.findViewById(R.id.iv_home_follow_buy_line).setVisibility(View.GONE);
        }
    }
}
